package hbnu.stockManage.service;

import hbnu.stockManage.repository.AdminRepository;

//用于处理（管理员）登录认证逻辑。
public class AuthService {
    private final AdminRepository adminRepository = new AdminRepository();

    public boolean login(String username, String password)
    {
        if(username == null || password == null)return false;
        return adminRepository.exists(username.trim(), password.trim());

    }
}
